<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

//segurança
require_once('com/fabriciojf/security/Permission.class.php');
Permission::requireInRole(array('admin'));
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Modelo de folha de estilo para o ERP Java Bemmelhor</title>
        <link rel="shortcut icon" href="templates/themes/adm-default/images/favicon.ico" type="image/x-icon" />
        <link href="templates/themes/adm-default/default.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="templates/wysiwyg/tiny_mce.js"></script>
        <script type="text/javascript" src="templates/wysiwyg/tiny.js"></script>
        <script type="text/javascript" src="com/fabriciojf/include/menu.js"></script>
    </head>
    <body>

        <div class="group">
            <div id="header">
                <div id="header-inner" class="group">
                    <div class="span-10">
                        <!-- img src="themes/default/images/logoerp.gif" height="30px" width="150px"/ -->
                        Jumbo CMS
                    </div>
                </div>
            </div>

            <div id="wrap">
                <div id="wrap-inner" class="container">
                    <div class="span-24-menu last">
                        <ul>
                            <h3>
                                {section name=i loop=$menuon}
                                <li>{$menuon[i]}</li>
                                {/section}
                            </h3>
                        </ul>
                    </div>

                    <div class="span-24">
                        <div id="form" class="span-24">
                            <div style="margin: 0pt; padding: 0pt;"></div>
                            <span class="right">
                                <p>
                                    <table>
                                       <th>Id</th>
                                       <th>Titulo</th>
                                       <th>Conteudo</th>
                                       <th>Data Cria&ccedil;o</th>
                                       <th>Tipo</th>
                                    <form action="do.php?action=SalvarPost" method="post">
                                        <h4>T&iacute;tulo:</h4>
                                        <input type="text" name="titulo" size="109"/><br /><br />
                                        <h4>Categoria:</h4>
                                        <select name="idCategoria">
                                            {section name=i loop=$idPost}
                                            <option value="{$idCategoria[i]}">{$categoria[i]}</option>
                                            {/section}
                                        </select>
                                        <h4>Conte&uacute;do:</h4>
                                        <textarea cols="100" rows="20" name="conteudo"></textarea> <br />
                                        <input type="submit" value="Salvar">
                                    </form>
                                </p>
                            </span><br />
                        </div>
                    </div>
                </div>
            </div> <!-- /wrap -->
            <div id="footer">
                <div class="mod group">
                    <div class="mod-body">
                        <p>© fabriciojf. Todos os direitos reservados. </p>
                    </div>
                </div>
            </div><!-- /footer -->
        </div> <!-- /acbusca -->

        <!-- c(~) -->
    </body>
</html>
